{if $row["status"]<2}
<form id="assign-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Engineer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-engineer_id" data-rule="required" data-params='{"type":"1"}' data-field="nickname" data-source="user/user/selectpage3"  class="form-control selectpage" name="row[engineer_id]" type="text" value="{$row.engineer_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_id" data-rule="required" data-params='{"type":"2"}' data-field="nickname"  data-source="user/user/selectpage3"  class="form-control selectpage" name="row[sale_id]" type="text" value="{$row.sale_id}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
{/if}

<div class="panel panel-default panel-intro">
    <div class="panel-heading"><div class="panel-lead">
        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
        <span>指派记录</span></div></div>
        <input type="hidden" value="{$row['id']}" name="warranty_id" id="warranty_id">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('suborder/edit')}"
                           data-operate-del="{:$auth->check('suborder/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>


